package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 经纪人绑定申请记录
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_agent_un_bind_apply")
@ApiModel(value="TbAgentUnBindApplyPo对象", description="经纪人解绑申请记录")
public class TbAgentUnBindApplyPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "邀请人用户id")
    @TableField("inviter_user_id")
    private Long inviterUserId;

    @ApiModelProperty(value = "申请人用户id")
    @TableField("apply_user_id")
    private Long applyUserId;

    @ApiModelProperty(value = "经纪人等级：1一级经纪人 2二级经纪人")
    @TableField("agent_level")
    private Integer agentLevel;

    @ApiModelProperty(value = "姓名")
    private String username;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "一级经纪人id")
    @TableField("agent_id")
    private Long agentId;

    @ApiModelProperty(value = "分组id")
    @TableField("group_id")
    private Long groupId;

    @ApiModelProperty(value = "审核状态：1待审核 2已通过 3未通过")
    @TableField("audit_state")
    private Integer auditState;

    @ApiModelProperty(value = "申请理由")
    @TableField("apply_reason")
    private String applyReason;

    @ApiModelProperty(value = "拒绝理由")
    @TableField("refuse_reason")
    private String refuseReason;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private LocalDateTime auditTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
